﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Meqs.Entity
{
    [Serializable]
    public class CreditReport
    {
        public CreditReport()
        { 
        }

        #region RowIndex 序号

        private int m_RowIndex;

        public int RowIndex
        {
            get { return m_RowIndex; }
            set { m_RowIndex = value; }
        }

        #endregion

        #region StuID 学生id

        private int m_StuID;

        public int StuID
        {
            get { return m_StuID; }
            set { m_StuID = value; }
        }

        #endregion

        #region StuName 学生姓名

        private string m_StuName;

        public string StuName
        {
            get { return m_StuName; }
            set { m_StuName = value; }
        }

        #endregion

        #region StuCode 学生学号

        private string m_StuCode;

        public string StuCode
        {
            get { return m_StuCode; }
            set { m_StuCode = value; }
        }

        #endregion

        #region ClsID 班级id

        private int m_ClsID;

        public int ClsID
        {
            get { return m_ClsID; }
            set { m_ClsID = value; }
        }

        #endregion

        #region ClsName 班级名

        private string m_ClsName;

        public string ClsName
        {
            get { return m_ClsName; }
            set { m_ClsName = value; }
        }
        #endregion

        #region CauseID 科目id

        private int m_CauseID;

        public int CauseID
        {
            get { return m_CauseID; }
            set { m_CauseID = value; }
        }

        #endregion

        #region CauseName 科目名

        private string m_CauseName;

        public string CauseName
        {
            get { return m_CauseName; }
            set { m_CauseName = value; }
        }
        #endregion

        #region Score 项目总分

        private double m_Score;

        public double Score
        {
            get { return m_Score; }
            set { m_Score = value; }
        }
        #endregion

        #region StartTime 开始时间

        private DateTime m_StartTime;

        public DateTime StartTime
        {
            get { return m_StartTime; }
            set { m_StartTime = value; }
        }
        #endregion

        #region TypeID 项目类型id

        private int m_TypeID;

        public int TypeID
        {
            get { return m_TypeID; }
            set { m_TypeID = value; }
        }
        #endregion

        #region TypeScore 类型得分

        private double m_TypeScore;

        public double TypeScore
        {
            get { return m_TypeScore; }
            set { m_TypeScore = value; }
        }
        #endregion
    }


    /// <summary>
    /// 获取学分结果的实体 stuId,stuCode,stuName,clsId,causeId,causeName,endScore
    /// </summary>
    [Serializable]
    public class CreditReportView
    {
        public CreditReportView()
        {
            //m_StuID = 0;
            //m_StudentCode = null;
            //m_StudentName = null;
            //m_ClsID = 0;
            //m_CauseID = 0;
            //m_CauseName = null;
            //m_EndScore = 0;
        }

        public CreditReportView(int stuId,string studentCode,string studentName,int clsId,int causeId,string causeName,double endScore)
        {
            m_StuID = stuId;
            m_StudentCode = studentCode;
            m_StudentName = studentName;
            m_ClsID = clsId;
            m_CauseID = causeId;
            m_CauseName = causeName;
            m_EndScore = endScore;
        }

        #region StuID 学号

        private int m_StuID;

        public int StuID
        {
            get { return m_StuID; }
            set { m_StuID = value; }
        }

        #endregion


        #region StudentCode 学生学号

        private string m_StudentCode;

        public string StudentCode
        {
            get { return m_StudentCode; }
            set { m_StudentCode = value; }
        }

        #endregion


        #region StudentName 学生姓名

        private string m_StudentName;

        public string StudentName
        {
            get { return m_StudentName; }
            set { m_StudentName = value; }
        }

        #endregion


        #region ClsID 班号

        private int m_ClsID;

        public int ClsID
        {
            get { return m_ClsID; }
            set { m_ClsID = value; }
        }

        #endregion


        #region CauseID 科目号

        private int m_CauseID;

        public int CauseID
        {
            get { return m_CauseID; }
            set { m_CauseID = value; }
        }

        #endregion


        #region CauseName 科目姓名

        private string m_CauseName;

        public string CauseName
        {
            get { return m_CauseName; }
            set { m_CauseName = value; }
        }

        #endregion


        #region EndScore 最终学分结果

        private double m_EndScore;

        public double EndScore
        {
            get { return m_EndScore; }
            set { m_EndScore = value; }
        }

        #endregion
    }
}
